package edu.ncst.baseweb.dao.res;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "res_info")
public class ResInfo extends RequestPage {
    @TableId
    private Integer id;

    @TableField(value = "tilite_name")//实验名称
    private String tiliteName;

    @TableField(value = "location")//实验地点
    private String location;

    @TableField(value = "enable")//状态 01 0为不到最大人数，1为到达最大人数
    private Integer enable;

    @TableField(value = "people_min")//人数下限
    private Integer peopleMin;

    @TableField(value = "release_time")//发布时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date releaseTime;

    @TableField(value = "people_max")//人数上限
    private Integer peopleMax;

    @TableField(value = "stime")//开始时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date stime;

    @TableField(value = "etime")//结束时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date etime;

    @TableField(value = "people")//人数
    private Integer people;

    @TableField(value = "state")//状态 0 1 2 已发布 已拒绝 已通过
    private Integer state;

    @TableField(value = "type")//本科生还是研究生 0为本科生 1为研究生
    private Integer type;


    public static final String COL_TYPE = "type";

    public static final String COL_TILITENAME = "tilite_name";

    public static final String COL_STATE = "state";







}
